﻿@model IEnumerable<TaoNiuOA.Models.SalaryStrategy>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<h2>
    工资策略
</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            开始时间
        </th>
        <th>
            截止时间
        </th>
        <th>
            工资计算公式
        </th>
        <th>
            操作
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.StartTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.EndTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CountExpression)
            </td>
            <td>
                @Html.ActionLink("编辑", "Edit", new { id = item.SalaryStrategyID }) |
                @Html.ActionLink("删除", "Delete", new { id = item.SalaryStrategyID })
            </td>
        </tr>
    }
</table>
